//
//  MyPOSlnactiveDirCell.m
//  NewPro
//
//  Created by 何荧红 on 2019/5/13.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "MyPOSlnactiveDirCell.h"
#import "CurrTransModel.h"

@interface MyPOSlnactiveDirCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UIImageView *sign;

@end

@implementation MyPOSlnactiveDirCell


-(void)setModel:(FriendModel *)model{
    _model = model;
    if (_model) {
        [self.icon sd_setImageWithURL:[NSURL URLWithString:model.headImg] placeholderImage:[UIImage imageNamed:@"头像"]];
        self.name.text = model.realName;
        NSString *img = [NSString stringWithFormat:@"等级%d",[model.currTrans.levelAmount integerValue]];
        self.sign.image = [UIImage imageNamed:img];
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
